import request from '@/utils/request'

// 查询盲盒订单列表
export function listCworder(query) {
  return request({
    url: '/system/cworder/list',
    method: 'get',
    params: query
  })
}

// 查询盲盒订单详细
export function getCworder(orderId) {
  return request({
    url: '/system/cworder/' + orderId,
    method: 'get'
  })
}

// 新增盲盒订单
export function addCworder(data) {
  return request({
    url: '/system/cworder',
    method: 'post',
    data: data
  })
}

// 修改盲盒订单
export function updateCworder(data) {
  return request({
    url: '/system/cworder',
    method: 'put',
    data: data
  })
}

// 删除盲盒订单
export function delCworder(orderId) {
  return request({
    url: '/system/cworder/' + orderId,
    method: 'delete'
  })
}
